﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WOS.Logging
{
    public sealed class LogTag
    {
        #region Private Fields
        private readonly string id;
        private readonly string name;
        #endregion
        #region Constructors
        public LogTag(string id, string name)
        {
            this.id = id;
            this.name = name;
        }
        #endregion

        #region Public Members
        public string Id
        {
            get { return this.id; }
        }

        public string Name
        {
            get { return this.name; }
        }
        #endregion
        #region Overridden Members
        public override int GetHashCode()
        {
            return this.id.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            var second = obj as LogTag;

            return second != null && second.id == this.id;
        }
        #endregion
    }
}
